home *** CD-ROM | disk | FTP | other *** search
/ The Devil's Doorknob BBS Capture (1996-2003) / devilsdoorknobbbscapture1996-2003.iso / mytelix.zip / Old Files I / TELIX / OLDTEL.ZIP / DOOR.MOD < prev    next >
Text File  |  1993-05-31  |  3KB  |  132 lines

  1. R
  2.  
  3.  
  4.  Sub : WWIV MODNET 
  5. 64/99: Drop FIle
  6.  Name: The Omnipotent #295 @7661
  7.  Date: Thu May 13 16:47:22 1993
  8.  From: The Keep of Ultimate Evil [FIS] WWIVnet (Upstate New York) [716-884-4636]
  9.  
  10. ┌────────────────────────────────────────────────────────────────────────────┐
  11. │ Mod Name      : OMNI02.MOD     Mod Author: The Omnipotent 1@17658 DreamNET │
  12. │ Difficulty    : ██▒▒▒▒▒▒▒▒▒ need to add 1 thing yourself  1@7686  DragonNET│
  13. │ WWIV Version  : 4.22                                                       │
  14. │ Mod Date      : 05/12/93                                                   │
  15. │ Files Affected: LILO.C,EXTRN.C,FCNS.H                                      │
  16. │ Description   : Creates DORINFO1.DEF Chain File needed for many on-line    │
  17. │                 games                                                      │
  18. └────────────────────────────────────────────────────────────────────────────┘
  19.  
  20. Step 1:
  21. Back up your source.....Of course you already knew that...
  22.  
  23. Step 2:
  24. Figure out which COM port you are using.
  25.  
  26. Step 3:
  27. Load EXTRN.C and add this at the very end:
  28.  
  29. /*Begin Block Copy*/
  30. char *create_chain_file_2(char *fn)
  31. {
  32.   int i,i1;
  33.   char s[81],s1[81],gd[81],dd[81];
  34.   static char fpn[81];
  35.   long l,l1;
  36.   FILE *f;
  37.  
  38.   cd_to(syscfg.gfilesdir);
  39.   get_dir(gd,1);
  40.   cd_to(cdir);
  41.   cd_to(syscfg.datadir);
  42.   get_dir(dd,1);
  43.   cd_to(cdir);
  44.   sl1(3,s);
  45.   l=(long) (timeon);
  46.   if (l<0)
  47.     l += 3600*24;
  48.   l1=(long) (timer()-timeon);
  49.   if (l1<0)
  50.     l1 += 3600*24;
  51.  
  52.   unlink(fn);
  53.   f=fopen(fn,"wt");
  54.   if (f) {               /* \/ insert COM port # here, in place of the space*/
  55.     fprintf(f,"%s\n%s\n\nCOM \n",syscfg.systemname,syscfg.sysopname);
  56.  
  57.     if (using_modem)
  58.       fprintf(f,"%u ",modem_speed);
  59.     else
  60.       fprintf(f,"KB ");
  61.     fprintf(f,"BAUD,%s\n%d\n%s\n\n\n%d\n%d\n30\n",
  62.             (andwith==0x7f)?"E,7,1":"N,8,1",incom,thisuser.name,
  63.             usernum,thisuser.sl);
  64.  
  65.  
  66.     fclose(f);
  67.   }
  68.   get_dir(fpn,1);
  69.   strcat(fpn,fn);
  70.   return(fpn);
  71. }
  72. /* End BLock Copy */
  73.  
  74. *Note: Put in your COM port where indicated
  75.  
  76. Step 4:
  77. Save & Close that file.
  78.  
  79. Step 5:
  80. Open LILO.C and search for:
  81.  
  82.      if (live_user)
  83.     topscreen();
  84.  
  85.   if ((syscfg.logon_c[0]) && live_user) {
  86.     nl();
  87.     stuff_in(s,syscfg.logon_c,create_chain_file("CHAIN.TXT"),"","","","");
  88.     create_chain_file_2("DORINFO1.DEF");  /*ADD THIS LINE*/
  89.     full_external(s,0,1);
  90.     nl();
  91.     nl();
  92. }
  93.  
  94. Now search down a little further until you find :
  95.  
  96. if (restrict_vote & thisuser.restrict)
  97.     i1=0;
  98.   if (actsl<=10)
  99.     i1=0;
  100.   if (i1 && live_user) {
  101.     nl();
  102.     prt(3,get_string(378));
  103.     nl();
  104.     nl();
  105.   }
  106.   save_status();
  107.   create_chain_file("CHAIN.TXT");
  108.   create_chain_file_2("DORINFO1.DEF");  /*ADD THIS LINE*/
  109.  
  110. Step 6:
  111. Save & close LILO.C. Open FCNS.H and at the end of the declarations of
  112. EXTRN.C add this:
  113.  
  114. char *create_chain_file_2(char *fn);
  115.  
  116. Step 7:
  117. Save FCNS.H.
  118.  
  119. Step 8:
  120. Sit back and compile...
  121.  
  122. Disclaimer: I take no responsibilites for any screwy stuff that happens. You
  123. put the Mod in not me...
  124.  
  125. L8er
  126.                                 The Omnipotent
  127.                                 1@17658 DreamNET
  128.                                 1@7686  DragonNET
  129.  
  130.  
  131.  
  132. [WWIV MODNET]   Read:(1-99,^64) :